package cn.edu.zafu.bigdata.x.zhouyuyan.work5;

public abstract class Shape {
    public abstract double area();
    public abstract double perimeter();
    public final void display(){
        String shapetype = this.getClass().getSimpleName();
        System.out.println("Shape Type:"+shapetype);
        System.out.println("Area:"+area());
        System.out.println("Perimeter:"+perimeter());
    }
}
